﻿
namespace AceSoft.RetailPlus.HRM.MembersModel
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Infrastructure;

    public partial class Members : ContactModel.Contact
    {
        public Members()
        {

        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<VIPRewardCard>().Map(m =>
            {
                m.MapInheritedProperties();
                m.ToTable("RewardCard");
            });

            //throw new UnintentionalCodeFirstException();
        }

        public DbSet<VIPRewardCard> HRMRewardCards { get; set; }
        public DbSet<HRMMember> HRMMembers { get; set; }
    }
}
